import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/earth',
      name: 'earth',
      component: () => import('../views/earth.vue')
    },
    {
      path: '/plot',
      name: 'plot',
      component: () => import('../views/plot.vue')
    },
    {
      path: '/bridge',
      name: 'bridge',
      component: () => import('../views/bridge.vue')
    },
    {
      path: '/map',
      name: 'map',
      component: () => import('../views/map.vue')
    },
    {
      path: '/search',
      name: 'search',
      component: () => import('../views/search.vue')
    },
    {
      path: '/plot',
      name: 'plot',
      component: () => import('../views/plot.vue')
    },
    {
      path: '/measure/:type',
      name: 'measure',
      component: () => import('../views/measure.vue')
    },
    {
      path: '/modelView',
      name:'modelView',
      component: () => import('../views/modelView.vue')
    },
    {
      path: '/fly',
      name:'fly',
      component: () => import('../views/fly.vue')
    },
    {
      path: "/chinawind",
      name: "chinawind",
      component: () => import("../views/chinawind.vue"),
    },
    {
      path: "/globewind",
      name: "globewind",
      component: () => import("../views/globewind.vue"),
    },
  ]
})

export default router
